﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Map.aspx.cs" Inherits="MallInteractiveMap.CMSWebClient.BasicView.Map" %>
<%@ Import Namespace="MallInteractiveMap.Language" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 420px;">
        <asp:UpdatePanel runat="server" ID="up">
            <ContentTemplate>
                <fieldset class="register">
                    <legend><%= LanguageLoader.GetText("MAP_INFORMATION")%></legend>
                    <p>
                        <asp:Label ID="TitleLable" runat="server" Text="Title" AssociatedControlID="TitleTextBox" />
                        <asp:TextBox runat="server" ID="TitleTextBox" MaxLength="100" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="TitleRequired" runat="server" ControlToValidate="TitleTextBox"
                            CssClass="failureNotification" ErrorMessage="Title is required." Text="*" SetFocusOnError="true"
                            ToolTip="Title is required." ValidationGroup="MapValidationGroup"></asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="ShopCountLabel" runat="server" Text="Shop Count" AssociatedControlID="ShopCount" />
                        <asp:TextBox runat="server" ID="ShopCount" MaxLength="100" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="ShopCountRequired" runat="server" ControlToValidate="ShopCount"
                            CssClass="failureNotification" ErrorMessage="Shop count cannot be empty." Text="*"
                            SetFocusOnError="true" ToolTip="Shop count cannot be empty." ValidationGroup="MapValidationGroup"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="ShopCountRange" runat="server" ControlToValidate="ShopCount"
                            CssClass="failureNotification" Type="Integer" MinimumValue="1"  MaximumValue="32767" ErrorMessage="Please enter numeric value." Text="*"
                            SetFocusOnError="true" ToolTip="Please enter numeric value." ValidationGroup="MapValidationGroup"></asp:RangeValidator>
                    </p>
                    <p>
                        <asp:Label ID="DescriptionLable" runat="server" Text="Description" AssociatedControlID="Description" />
                        <asp:TextBox runat="server" ID="Description" TextMode="MultiLine" Rows="3" CssClass="textEntryMultiline" />
                    </p>
                </fieldset>
                <p class="saveButton">
                    <asp:Button ID="SaveMap" runat="server" Width="80px" Text="Save" OnClick="Save_Click"
                        ValidationGroup="MapValidationGroup" />
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
